import req1 from '@/lib/req1'
//获取日报列表
export function staListAPI(){
    return req1.get('/account/accountList')
}
//新增日报
export function addStaInsertAPI({username  ,password   ,name  ,roleNote ,type,deptName    }){
return req1.post('/account/accountAdd',{username  ,password   ,name  ,roleNote ,type,deptName    })
}
//修改
export function staUpdateAPI({id,username  ,password   ,name  ,roleNote ,type,deptName}){
    console.log(id,username  ,password   ,name  ,roleNote ,type,deptName);
  return req1.put('/account/accountUpdate',{id,username  ,password   ,name  ,roleNote ,type,deptName  })
}
//删除
export function staDeleteAPI(id){
    id = id.join()
    return req1.delete('/account/accountDelete',{id})
}
//搜索
export function staSeach({name}){
    return req1.get('/account/accountLike',{name})
}
//部门
export function depListAPI(){
    return req1.get('/archives/deptList')
}
